package com.ymx.darling.type;

import java.sql.*;

public class ClobHandler implements TypeHandler<Clob> {
    @Override
    public Clob getResult(ResultSet resultSet, int columIndex) throws SQLException{
        return resultSet.getClob(columIndex);
    }

    @Override
    public void setParameter(PreparedStatement statement, Clob value, int index) throws SQLException {
        statement.setClob(index, value);
    }
}
